package org.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Hello world!
 *
 */
@SpringBootApplication
//扫描Mapper接口的包下所有的Mapper接口，生成这些接口的代理对象，供业务Service注入使用
@MapperScan("org.example.**.mapper")//!!!mapper接口就不用写@Mapper注解了,统一扫描
public class UserServer
{
    public static void main( String[] args )
    {
        SpringApplication.run(UserServer.class, args);
    }
}
